package com.gitee.wsl.android.ui.activity


import android.annotation.SuppressLint
import androidx.activity.ComponentActivity
import androidx.fragment.app.Fragment


class Launcher(@SuppressLint("RestrictedApi") val activity: ComponentActivity)

val ComponentActivity.launcher: Launcher
    get() {
    return Launcher(this)
}

val Fragment.launcher: Launcher get() = requireActivity().launcher

